// header file for class Result
#ifndef __RESULT__
#define __RESULT__

extern RobustIO robio;
extern Players players;
extern const int DATELENGTH; // these two are declared
extern const int MAXPLAYERS; // in 'Consthead.hpp'
struct Table;

class Result {
private:
    char date[DATELENGTH];
    int homegoals;
    int awaygoals;
    bool normalplaytime;
    int homescorers[MAXPLAYERS];
    int awayscorers[MAXPLAYERS];
// not a pointer to number anymore, easier when they just contain a number
// not enough wasted memory doing it this way for us to care i think
    
    friend class Division;
	friend void printWriteMatchResults();
    
public:
    Result();
    Result(istream* in);
    void writeToFile(ofstream* out);
	void makeTable(Table* hometeam, Table* awayteam, int type);
};
#endif
